package com.hsogoo.ultraman.controller;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hsogoo.ultraman.ConfigBean;

@Slf4j
@RestController
@RequestMapping("/demo")
public class DemoController {

    @Autowired
    private ConfigBean configBean;

    @GetMapping("/test")
    public String test(){
        log.info("connectTimeout={}", configBean.getConnectTimeout());
        log.info("readTimeout={}", configBean.getReadTimeout());
        log.info("currentTime={}", configBean.getCurrentTime());
        log.info("zkUrl={}", configBean.getZkUrl());
        log.info("redisUrl={}", configBean.getRedisUrl());
        log.info("webSite={}", configBean.getWebsite());
        log.info("companyName={}", configBean.getCompanyName());
        return configBean.toString();
    }

}
